﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyModels.Models
{
    public class RoleModulePermission: RootEntityTKey<long>
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public long RoleId { get; set; }

        /// <summary>
        /// 菜单 ID
        /// </summary>
        public long ModuleId { get; set; }

        /// <summary>
        /// api Id
        /// </summary>
        public long? PermissionId { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Role Role { get; set; }

        /// <summary>
        /// 菜单
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Modules Modules { get; set; }

        /// <summary>
        /// 权限
        /// </summary>
        [SugarColumn(IsIgnore =true)]
        public Permission Permission { get; set; }
    }
}
